package com.sky.mapper.user;

import com.sky.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface UserMapper {


    @Select("select * from user where openid=#{openid}")
    User selectByOpenId(String openid);

    void save(User user);

    @Select("select * from user where id=#{userId}")
    User getById(Long userId);


    Integer getTotolByUser(Map map);
}
